package com.company.cloud.sdk.modules.api.fallback;

import com.company.cloud.sdk.modules.api.service.WxSdkRemoteService;
import feign.hystrix.FallbackFactory;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;

@Log4j2
@Component
public class WxSdkRemoteServiceFallbackFactory implements FallbackFactory<WxSdkRemoteService> {
    @Override
    public WxSdkRemoteService create(Throwable cause) {
        return new WxSdkRemoteService() {
//            @Override
//            public BaseClientResult<String> checkCompany(String companyNo) {
//                return BaseClientResult.callbackError();
//            }
        };
    }
}
